<h2 class="aligncenter margin_top20">Please login to continue</h2>

<div id="errors" class="aligncenter ">
<?php echo validation_errors();
	if( isset($loginerr) ){
		echo "Username and password not found in system.";
	}
?>
</div>
<div id="logincontainer" class="aligncenter">

<?php 
$attributes = array('class' => '', 'id' => 'loginform');
echo form_open('admin/login/submitted', $attributes); ?>

	<h5>Username</h5>
	<input type="text" class="niceform" name="username" <?php if( getError( $errors,'username') )echo 'class="error"';?> value="<?php echo set_value('username'); ?>" size="40" />
	<h5>Password</h5>
	<input type="text" class="niceform" name="password" <?php if( getError( $errors,'password') )echo 'class="error"';?>value="<?php echo set_value('password'); ?>" size="40" />
	<div class='clearboth floatright alignright nicebutton' id="button_panel" >
		<input type="submit" class="button" value="Login" id="login">
	</div>
	
	</form>
</div>                                                                                                                                                                                                                                                                                                                                                                                   